package com.yellowpage.ndc.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * ManageRegion entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "db_ndc.MANAGE_REGION", catalog = "db_ndc")
public class ManageRegion implements java.io.Serializable {

	// Fields

	private String regionCode;
	private String name;
	private String shortName;
	private String engName;
	private Boolean telLength;
	private String areaCode;
	private String abbrName;
	private String note;

	// Constructors

	/** default constructor */
	public ManageRegion() {
	}

	/** full constructor */
	public ManageRegion(String name, String shortName, String engName,
			Boolean telLength, String areaCode, String abbrName, String note) {
		this.name = name;
		this.shortName = shortName;
		this.engName = engName;
		this.telLength = telLength;
		this.areaCode = areaCode;
		this.abbrName = abbrName;
		this.note = note;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "REGION_CODE", unique = true, nullable = false, length = 6)
	public String getRegionCode() {
		return this.regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}

	@Column(name = "NAME", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "SHORT_NAME", length = 64)
	public String getShortName() {
		return this.shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	@Column(name = "ENG_NAME", length = 128)
	public String getEngName() {
		return this.engName;
	}

	public void setEngName(String engName) {
		this.engName = engName;
	}

	@Column(name = "TEL_LENGTH", precision = 1, scale = 0)
	public Boolean getTelLength() {
		return this.telLength;
	}

	public void setTelLength(Boolean telLength) {
		this.telLength = telLength;
	}

	@Column(name = "AREA_CODE", length = 8)
	public String getAreaCode() {
		return this.areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	@Column(name = "ABBR_NAME", length = 64)
	public String getAbbrName() {
		return this.abbrName;
	}

	public void setAbbrName(String abbrName) {
		this.abbrName = abbrName;
	}

	@Column(name = "NOTE", length = 128)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}